#include <stdio.h>
#include <stdlib.h>
#include "nohead.h"

int main()
{
    struct node_st *list = NULL;
    struct score_st tmp;
    int err;
    for(int i = 0;i < 8; ++i){
        tmp.id = i;
        snprintf(tmp.name,NAMESIZE,"std%d",i);
        tmp.math = rand() % 100;
        tmp.chinese = rand() % 100;
        err = list_insert(&list,&tmp);
        if(err != 0){
            exit(1);
        }

    }
    
    list_show(list);
    printf("------------------\n");
    list_delete(&list);
    list_show(list);
    exit(0);
}